package org.geometerplus.fbreader.fbreader;

import com.chineseall.bookdetail.activity.BatchDownloadActivity;
import com.chineseall.reader.ui.ActivityHelper;
import com.chineseall.readerapi.entity.Chapter;
import com.iwanvi.common.report.StaticsLogService;

/**
 *
 * 点击批量购买
 * Created by Tony on 2018/11/30.
 */

public class ReadPreAction extends FBAction {
    public ReadPreAction(FBReaderApp fbreader) {
        super(fbreader);
    }

    @Override
    protected void run(Object... params) {
        Chapter chapter = null;
        if (params.length >= 2) {
            Object[] objects = (Object[]) params[2];
            chapter = (Chapter) objects[0];
        }
        StaticsLogService.sendLog("3613","1-2");
        ActivityHelper.doJump(Reader.getAppContext(), BatchDownloadActivity.Instance(Reader.getAppContext(),Reader.getAppContext().getShelfItemBook(),chapter,"3601"));


    }
}
